| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Entity.h
1 // Entity.h
3 //
5
6 namespace nkGraphics
7 {
14 class Entity final : public nkExport::Exportable
15 {
16 public :
17
18 // Getters
22 const EntityRenderInfo& getRenderInfo () const ;
26 EntityRenderInfo& getRenderInfo () ;
30 Node* getParentNode () const ;
34 RenderQueue* getRenderQueue () const ;
38 void* getUserData () const ;
39
40 // Setters
46 void setRenderInfo (const EntityRenderInfo& info) ;
54 void setParentNode (Node* parent) ;
61 void setDirtyNodeTransform (bool value) ;
68 void setUserData (void* value) ;
69
70 // Updates
77 void updateMeshBinding (Mesh* oldMesh) ;
78
79 // Import / Export
80 virtual void exportClassToTree (nkExport::Node* rootNode) override ;
81 virtual void importClassFromTree (nkExport::Node* rootNode) override ;
82 } ;
83 }
nkGraphics::Entity::updateMeshBinding
void updateMeshBinding(Mesh *oldMesh)
nkGraphics::Entity::getRenderInfo
EntityRenderInfo & getRenderInfo()
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkGraphics::RenderQueue
A render queue, where all items that have to be rendered are queued.
Definition: RenderQueue.h:17
nkGraphics::EntityRenderInfo
Compiles the render information for an Entity to use within a RenderQueue.
Definition: EntityRenderInfo.h:36
nkGraphics::Entity::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::Entity::setUserData
void setUserData(void *value)
nkGraphics::Entity::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::Entity::setDirtyNodeTransform
void setDirtyNodeTransform(bool value)
nkGraphics::Entity::setRenderInfo
void setRenderInfo(const EntityRenderInfo &info)
nkGraphics::Entity::getRenderInfo
const EntityRenderInfo & getRenderInfo() const
nkGraphics::Entity::getRenderQueue
RenderQueue * getRenderQueue() const
nkGraphics::Entity::getUserData
void * getUserData() const
nkGraphics::Entity::getParentNode
Node * getParentNode() const
nkGraphics::Node
Represents a node in a scene graph.
Definition: Node.h:16
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14
nkGraphics::Entity::setParentNode
void setParentNode(Node *parent)